CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

SET( LIB_NAME  "A" )

MESSAGE(STATUS "LIBRARY:     " ${LIB_NAME})

INCLUDE_DIRECTORIES(
	${INC_PATH}/${LIB_NAME} )

FILE( GLOB
	"LIB_SOURCES"
	"${SRC_PATH}/${LIB_NAME}/*.cpp" )

MESSAGE( STATUS "SOURCES:" )
foreach( sf ${LIB_SOURCES} )
MESSAGE( STATUS "SOURCE:     " ${sf} )
endforeach( sf )

FILE( GLOB
	"LIB_HEADERS"
	"${INC_PATH}/${LIB_NAME}/*.h" )

MESSAGE( STATUS "HEADERS:" )
foreach( hf ${LIB_HEADERS} )
MESSAGE( STATUS "HEADER:     " ${hf} )
endforeach( hf )

ADD_LIBRARY( ${LIB_NAME} SHARED	${LIB_SOURCES} ${LIB_HEADERS} )
